home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / gfx / nsIScreen.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIScreen.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIScreen_h__
  6. #define __gen_nsIScreen_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIScreen */
  19. #define NS_ISCREEN_IID_STR "f728830e-1dd1-11b2-9598-fb9f414f2465"
  20.  
  21. #define NS_ISCREEN_IID \
  22.   {0xf728830e, 0x1dd1, 0x11b2, \
  23.     { 0x95, 0x98, 0xfb, 0x9f, 0x41, 0x4f, 0x24, 0x65 }}
  24.  
  25. class NS_NO_VTABLE nsIScreen : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCREEN_IID)
  29.  
  30.   /* void GetRect (out long left, out long top, out long width, out long height); */
  31.   NS_IMETHOD GetRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height) = 0;
  32.  
  33.   /* void GetAvailRect (out long left, out long top, out long width, out long height); */
  34.   NS_IMETHOD GetAvailRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height) = 0;
  35.  
  36.   /* readonly attribute long pixelDepth; */
  37.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) = 0;
  38.  
  39.   /* readonly attribute long colorDepth; */
  40.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSISCREEN \
  46.   NS_IMETHOD GetRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height); \
  47.   NS_IMETHOD GetAvailRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height); \
  48.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth); \
  49.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSISCREEN(_to) \
  53.   NS_IMETHOD GetRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height) { return _to GetRect(left, top, width, height); } \
  54.   NS_IMETHOD GetAvailRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height) { return _to GetAvailRect(left, top, width, height); } \
  55.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return _to GetPixelDepth(aPixelDepth); } \
  56.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return _to GetColorDepth(aColorDepth); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSISCREEN(_to) \
  60.   NS_IMETHOD GetRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRect(left, top, width, height); } \
  61.   NS_IMETHOD GetAvailRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailRect(left, top, width, height); } \
  62.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPixelDepth(aPixelDepth); } \
  63.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorDepth(aColorDepth); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsScreen : public nsIScreen
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSISCREEN
  74.  
  75.   nsScreen();
  76.  
  77. private:
  78.   ~nsScreen();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsScreen, nsIScreen)
  86.  
  87. nsScreen::nsScreen()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsScreen::~nsScreen()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* void GetRect (out long left, out long top, out long width, out long height); */
  98. NS_IMETHODIMP nsScreen::GetRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* void GetAvailRect (out long left, out long top, out long width, out long height); */
  104. NS_IMETHODIMP nsScreen::GetAvailRect(PRInt32 *left, PRInt32 *top, PRInt32 *width, PRInt32 *height)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* readonly attribute long pixelDepth; */
  110. NS_IMETHODIMP nsScreen::GetPixelDepth(PRInt32 *aPixelDepth)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* readonly attribute long colorDepth; */
  116. NS_IMETHODIMP nsScreen::GetColorDepth(PRInt32 *aColorDepth)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_nsIScreen_h__ */
  126.